<!doctype html>
{{ "<!-- This site was created with Hugo Blox. https://hugoblox.com -->" | safeHTML }}
{{ printf "<!-- Last Published: %s -->" (now | time.Format ":date_long") | safeHTML }}
{{- $language_code := site.LanguageCode | default "en-us" -}}
<html lang="{{$language_code}}" {{ if in site.Data.i18n.rtl.rtl $language_code }}dir="rtl"{{else}}dir="ltr"{{end}}
      data-wc-theme-default="{{ (lower site.Params.appearance.mode) | default "system" }}">
  {{ partial "site_head" . }}
  <body class="dark:bg-gray-800 dark:text-white-800 page-wrapper" id="top">
    <div id="page-bg"></div>
    <div class="page-header {{ if site.Params.header.navbar.fixed_to_top }}sticky top-0 z-30{{ end }}">
      {{/* Load header block */}}
      {{ $show_navbar := ((site.Params.header.navbar.enable | default true) | and (ne .Params.header.navbar.enable false)) | or .Params.header.navbar.enable }}
      {{ if $show_navbar }}
        {{ $block_name := .Params.header.navbar.blox | default site.Params.header.navbar.blox | default "navbar" }}
        {{ $block_path := printf "components/headers/%s.html" $block_name }}
        {{ if not (templates.Exists (printf "partials/%s" $block_path)) }}
          {{ errorf "Check your `header` config in `params.yaml` and/or front matter. Cannot find header block at `layouts/partials/%s`" $block_path }}
        {{ else }}
          {{ partial $block_path . }}
        {{ end }}
      {{ end }}
    </div>
    <div class="page-body {{if ne .Type "landing"}} my-10{{end}}">
      {{ block "main" . }}{{ end }}
    </div>
    <div class="page-footer">
      {{ partial "site_footer" . }}
    </div>

    {{/* EXTENSIBILITY HOOK: BODY-END */}}
    {{ partial "functions/get_hook" (dict "hook" "body-end" "context" .) }}
  </body>
</html>
